package com.health.db.dao.order.impl;

import java.util.List;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.order.ISubRegisterOrderDao;
import com.health.db.mapper.SubRegisterOrderMapper;
import com.health.db.model.SubRegisterOrder;
import com.health.db.model.SubRegisterOrderExample;

/**
 * 子订单业务
 * 2017/08/20 时间节点，改该相关业务未在线上使用
 * @author YC
 *
 */
public class SubRegisterOrderDaoImpl extends ServiceInterface implements ISubRegisterOrderDao{

	SubRegisterOrderMapper subRegisterOrderMapper;

	@Override
	public int insert(SubRegisterOrder record) {
		// TODO Auto-generated method stub
		return subRegisterOrderMapper.insert(record);
	}

	@Override
	public List<SubRegisterOrder> selectSimple(SubRegisterOrderExample example) {
		// TODO Auto-generated method stub
		return subRegisterOrderMapper.selectByExample(example);
	}

	@Override
	public SubRegisterOrder selectByPrimaryKey(Long registerid) {
		// TODO Auto-generated method stub
		return subRegisterOrderMapper.selectByPrimaryKey(registerid);
	}

	@Override
	public int updateOrderSelective(SubRegisterOrder record) {
		// TODO Auto-generated method stub
		return subRegisterOrderMapper.updateByPrimaryKeySelective(record);
	}

	public SubRegisterOrderMapper getSubRegisterOrderMapper() {
		return subRegisterOrderMapper;
	}

	public void setSubRegisterOrderMapper(
			SubRegisterOrderMapper subRegisterOrderMapper) {
		this.subRegisterOrderMapper = subRegisterOrderMapper;
	}

}
